#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int main()
{
	char str1[100] = { 0 };
	gets_s(str1);
	char ch = 0;
	scanf("%c", &ch);
	int l = strlen(str1);
	char str2[100] = { 0 };
	int j = 0;
	for (int i = 0; i < l; i++)
	{
		if (str1[i] != ch)
		{
			str2[j++] = str1[i];
		}
	}
	str2[j] = '\0';
	printf("%s", str2);
	return 0;
}